﻿/*-----------------------------------------------------------------------------------------------------
 * 
 * 
 * 
 * 
 * 
 * 
 * 
 *-----------------------------------------------------------------------------------------------------
 */
namespace Akard.Portal.Services.Domain.MContents.Categorys
{
    #region referentce
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Akrad.Portal.Core.Entitys;
    using Akrad.Portal.Core.Entitys.MContents.Category;
    using Microsoft.SharePoint;

    #endregion

    public interface ICategorys
    {
        #region CRUD Method
        //Crud
        #region create Category
        void CreateCategory(SPWeb sweb, CategoryEntity entity);

        void CreateCategory(SPContext crcontext, CategoryEntity entity, out int itemid);

        void CreateCategory(SPSite site, CategoryEntity entity, out bool flag);

        #endregion

        #region update category

        void UpdateCategory(SPWeb sweb, CategoryEntity entity, out int itemid);

        void UpdateCategory(SPWeb sweb, CategoryEntity entity, out bool flag);

        #endregion

        #region delete Category
        void DeleteCategory(SPWeb sweb, int itemId, out int itemid);
        void DeleteCategory(SPWeb sweb, CategoryEntity entity, out int itemid);
        void DeleteCategory(SPWeb sweb, CategoryEntity entity, out bool flag);
        void DeleteCategory(SPWeb sweb, int itemid, out bool flag);
        #endregion

        #region Get Cagetory

        CategoryEntity GetCategoryEntity(int Id, SPWeb sweb);
        List<CategoryEntity> GetallList(SPWeb sweb);
        List<CategoryEntity> GetallList(SPWeb sweb, string query);
        
        #endregion


        #region Install List

        void InstalList(SPWeb sweb);

        #endregion

        #endregion


    }
}
